-- GENERATED SPELL FOR [Lordaeron Sentry] --


function spell0_17815(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17815', 549, 1)
end

function spell1_17815(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17815', 608, 1)
end

function Sorts_17815(pUnit, Event)
local choix_sorts_17815 = math.random(0, 1)
if choix_sorts_17815 == 0 then
pUnit:RegisterEvent('spell0_17815', 1, 1)
end
if choix_sorts_17815 == 1 then
pUnit:RegisterEvent('spell1_17815', 1, 1)
end
end

function mob17815_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17815', math.random(1500, 3000), 1)
end

function mob17815_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17815_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17815_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17815, 1, 'mob17815_Action')
RegisterUnitEvent(17815, 2, 'mob17815_Leave')
RegisterUnitEvent(17815, 3, 'mob17815_Kill')
RegisterUnitEvent(17815, 4, 'mob17815_Die')
